]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
tests: Use different suites
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2023 22:40:09 +0000 (00:40 +0200)
committerSimon McVittie <smcv@debian.org>
Mon, 6 May 2024 21:41:00 +0000 (22:41 +0100)
This makes it easier to only run unit- or automation tests.

Origin: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2845
Applied-upstream: 45~beta, commit:476bf230416aed7de05b8194451483ba12ace0be

Gbp-Pq: Name tests-Use-different-suites.patch

tests/meson.build

index 85339dd141acd1b1b48a920bc5769bd1db292551..235337e2ab1b09171234f7513a5edfea9bcede38 100644 (file)
@@ -18,7 +18,7 @@ dbus_runner = configure_file(
   configuration: dbusrunnerconf,
 )
 
-tests = [
+unit_tests = [
     'highlighter',
     'insertSorted',
     'jsParse',
@@ -29,9 +29,10 @@ tests = [
     'versionCompare',
 ]
 
-foreach test : tests
+foreach test : unit_tests
   test(test, run_test,
     args: 'unit/@0@.js'.format(test),
+    suite: 'unit',
     workdir: meson.current_source_dir())
 endforeach
 
@@ -68,6 +69,7 @@ foreach perf_test : perf_tests
   options = perf_test.get('options', [])
 
   test('perf-' + test_name, dbus_runner,
+    suite: 'shell',
     args: [
       perf_tool,
       '--headless',